<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <title>浙江瑞昇环境工程有限公司</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="alternate icon" type="image/png" href="">
    <link rel="stylesheet" href="{{asset('/css/amazeui.flat.min.css')}}"/>
    <link rel="stylesheet" href="{{asset('/css/apps.css')}}"/>
    <link rel="stylesheet" type="text/css" href="{{asset('css/nav.css')}}">
    @yield('style')
</head>
    <style>
        .clearfix {margin: 10px auto!important;}
    </style>
<body>

<header class="jd-topbar" style="z-index: 999;">
    <div class="jd-container" id="jd-header">
        <h1 class="am-topbar-brand">
            <a href="{{url('/index')}}">网站首页</a>
        </h1>
        <div class="nav_bg" id='cssmenu'>
            <ul class="nav clearfix">
                @foreach($navs as $key=>$nav)
                    <li class="@if([] != $nav['data']) has-sub @endif @if($pageName == $key) active @endif">
                        <a href='@if([] == $nav['data']){{url($key)}}@else # @endif'>{{$nav['name']}}</a>
                        @if([] != $nav['data'])
                            <ul>
                                @foreach($nav['data'] as $item)
                                    <li><a href='{{url('/'.$key.'/'.$item->id)}}'>{{$item->name}}</a></li>
                                @endforeach
                            </ul>
                        @endif
                    </li>
                @endforeach
            </ul>
        </div>
        <!--导航条-->
    </div>
</header>
@yield('content')
<footer data-am-widget="footer" class="am-footer am-footer-default">
    <div class="am-footer-miscs ">
        <p>©2016 {{Config::get('site.title')}}</p>
        <p>技术支持：<a href="http://www.hzrhkj.cc">杭州荣浩科技有限公司</a></p>
    </div>
    <div class="am-footer-miscs ">
        <p>联系电话：{{$setting['tel']}}, 地址：{{$setting['addr']}}</p>
    </div>
</footer>
<div id="am-footer-mode" class="am-modal am-modal-no-btn am-switch-mode-m am-switch-mode-m-default">
    <div class="am-modal-dialog">
        <div class="am-modal-hd am-modal-footer-hd">
            <a href="javascript:vsoid(0)" data-dismiss="modal" class="am-close am-close-spin"
               data-am-modal-close>&times;</a>
        </div>
    </div>
</div>

<script src="/js/jquery.min.js"></script>
<script src="/js/amazeui.min.js"></script>
<script src="/js/nav.js"></script>
@yield('js')
</body>

</html>